<?php

namespace App\Library\Requests\Login;

use App\Library\Requests\Base\BaseMobileRequest;

class LoginMobileRequest extends BaseMobileRequest
{
    public function rules(): array
    {
        return array_merge(parent::rules(), [
            'type' => 'required|integer|in:1',
            'code' => 'required|string|size:4|regex:' . __('com.numReg'),
        ]);
    }
}
